﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="AddFormationPlanifie.aspx.cs" Inherits="UI.AddFormationPlanifie" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" runat="server">
    <asp:FormView runat="server" ID="formAddFormationPlanifie" DefaultMode="Insert">
        <InsertItemTemplate>
            <table width="100" id="formTable">
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="Nom de la formation" Width="200px" />
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlFormationName" DataTextField="Libelle" DataValueField="Identifiant" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="Formateur"  Width="200px" />
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlFormateur" DataTextField="FormateurName" DataValueField="Identifiant" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="Type de la formation" Width="200px" />
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlTypeFormation" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:TextBox ID="tbDateDebut" runat="server" ></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="tbDateDebut" ErrorMessage="*" BackColor="Red" Display="Dynamic" runat="server" Text="*" />
                        <asp:CalendarExtender ID="ceDateDebut" runat="server"  TargetControlID="tbDateDebut"  />
                        <asp:TextBox ID="tbDateFin" runat="server" ></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="tbDateFin" ErrorMessage="*" BackColor="Red" Display="Dynamic" runat="server" Text="*" />
                        <asp:CalendarExtender ID="ceDateFin" runat="server"  TargetControlID="tbDateFin" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="right">
                        <asp:Button ID="bttCancel" runat="server" Text="Annuler" Width="75px" OnClick="bttCancel_OnClick" CausesValidation="false"  />
                        <asp:Button ID="bttAdd" runat="server" Text="Planifier" Width="75px" OnClick="bttAdd_OnClick" />
                    </td>
                </tr>
            </table>
        </InsertItemTemplate>
    </asp:FormView>
</asp:Content>
